<html>
<head>
<title>hStateC</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../../_sharedassets/pages.js"></script>
</head>
<body>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_21.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10"  height="1"><a href="FStEngOneFive_23.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1"></td></tr></table>
<h1>hStateC</h1>
<h4>Description</h4>
<p>This class defines a hierarchical state that has one or more sub-networks. 
  You attach the state to the state engine by specifying the state (network) manager 
  pointer (of type <font face="Courier New, Courier, mono"><a href="FStEngOneFive_84.html">stateMgr</a></font>). 
  If this is the topmost (root) state in the statechart, you pass in <font face="Courier New, Courier, mono">undefined</font> 
  for this value (and then use the <font face="Courier New, Courier, mono">stateEngine</font>'s 
  <font face="Courier New, Courier, mono">setStateNetwork()</font> to attach the 
  network to the engine).</p>
<p>To add sub-networks, you create state managers as usual and then use <font face="Courier New, Courier, mono">addStMgr()</font>. 
  You attach states to particular sub-networks by specifying the appropriate manager.</p>
<h4>Usage</h4>
<pre><i>new hStateC(name, id, stateMgrPtr);</i>
</pre>
<h4>Parameters</h4>
<p><i>name</i> String name of the state. Used in trace output</p>
<p><i>id</i> Typically numeric, this is the ID of the state (must be unique among 
  other states in the same network level)</p>
<p><i>stateMgrPtr </i>Pointer to the state manager for the local network in which 
  the state <em>resides</em> (not to be confused with the sub-network this state 
  <em>manages</em>), or <font face="Courier New, Courier, mono">undefined</font> 
  for the root state</p>
<h4>Example</h4>
<pre>
<i>// state id is 0
myState0 = new hStateC("State Name", 0, myMgrPtr);
</i></pre>
<h4>Code Hint</h4>
<p>Variable names with the suffix &quot;_hStateC&quot; are recognized for the 
  sake of codehinting, as hStateCs.</p>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="6" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_21.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10" height="1"><a href="FStEngOneFive_23.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr></table>
</body>
</html>